﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MVPlan.Engine.Gases;

namespace MVPlan.Engine
{
    static class Extensions
    {
        public static Gas FindByShortName(this List<Gas> gases, Gas match)
        {
            foreach (Gas g in gases)
            {
                if (g.ShortName == match.ShortName)
                {
                    return g;
                }
            }

            return null;
        }
    }
}
